package com.atguigu.gulimail.product.dao;

import com.atguigu.gulimail.product.entity.CategoryBrandRelationEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 品牌分类关联
 *
 * @author wanght
 * @email wanght@gmail.com
 * @date 2021-04-09 15:07:38
 */
@Mapper
public interface CategoryBrandRelationDao extends BaseMapper<CategoryBrandRelationEntity> {
    /**
     * 通过品牌id更新品牌名称
     *
     * @param brandName
     * @param brandId
     */
    void updateBrandNameByBrandId(@Param("brandName") String brandName, @Param("brandId") Long brandId);


    void updateCategory(@Param("catId") Long catId, @Param("name") String name);

}
